package edu.whu.service;

import edu.whu.bean.User;
import edu.whu.exception.RegisterException;
import edu.whu.exception.UnregisterException;
import org.springframework.stereotype.Service;

import java.util.List;

public interface UserService {
    void register(User user) throws RegisterException;
    void unregister(User user) throws UnregisterException;
    List<User> selectAll();
    User selectById(int id);
    List<User> selectByName(String name);


}
